﻿<%@ Page Title="" Language="C#" MasterPageFile="~/doanh_nghiep/DNAdminLayout.master" AutoEventWireup="true" CodeFile="dn_cap_nhat_km.aspx.cs" Inherits="doanh_nghiep_dn_cap_nhat_km" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" src="./js/nicEdit.js"></script>
    <script type="text/javascript">
//<![CDATA[
        bkLib.onDomLoaded(function () { new nicEditor({ maxHeight: 800, fullPanel: true }).panelInstance('ctl00_ContentPlaceHolder1_noi_dung'); });
        bkLib.onDomLoaded(function () { new nicEditor({ maxHeight: 800, fullPanel: true }).panelInstance('ctl00_ContentPlaceHolder1_mo_ta_sp'); });
        bkLib.onDomLoaded(function () { new nicEditor({ maxHeight: 800, fullPanel: true }).panelInstance('ctl00_ContentPlaceHolder1_dac_trung'); });
        bkLib.onDomLoaded(function () { new nicEditor({ maxHeight: 800, fullPanel: true }).panelInstance('ctl00_ContentPlaceHolder1_dieu_kien_ap_dung'); });
  //]]>
    </script>
    <div class="block form" id="them">
        <div class="content">
            <h2 class="title">
                Thêm khuyến mãi</h2>
            <div class="inner">
                <form action="#" method="get" class="form">
                <div class="group">
                    <label class="label">
                        Tên sản phẩm:
                    </label>
                    <asp:TextBox ID="ten_sp" CssClass="text_field" size="30" runat="server"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Thể loại:
                    </label>
                    <asp:DropDownList ID="the_loai" runat="server" DataSourceID="ds_the_loai" 
                        DataTextField="ten_the_loai" DataValueField="id">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="ds_the_loai" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:babydealConnectionString %>" 
                        SelectCommand="SELECT * FROM [the_loai]"></asp:SqlDataSource>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                        ControlToValidate="the_loai" Display="Dynamic" 
                        ErrorMessage="Thể loại không được trống"></asp:RequiredFieldValidator>
                </div>
                <div class="group">
                    <label class="label">
                        Bài viết:
                    </label>
                    <asp:TextBox Style="width: 100%; height: 500px;" ID="noi_dung" runat="server" TextMode="MultiLine"
                        CssClass="text_area" Rows="10" Columns="60"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Mô tả sản phẩm:
                    </label>
                    <asp:TextBox ID="mo_ta_sp" Style="width: 100%; height: 200px;" CssClass="text_area" Rows="5" Columns="80" runat="server"
                        TextMode="MultiLine"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Đặc trưng:
                    </label>
                    <asp:TextBox ID="dac_trung" Style="width: 100%; height: 200px;" CssClass="text_area" Rows="5" Columns="80" runat="server"
                        TextMode="MultiLine"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Điều kiện áp dụng:
                    </label>
                    <asp:TextBox ID="dieu_kien_ap_dung" Style="width: 100%; height: 200px;" CssClass="text_area" Rows="5" Columns="80" runat="server" TextMode="MultiLine"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Giá gốc:
                    </label>
                    <asp:TextBox ID="gia_goc" CssClass="text_field" runat="server"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Giá khuyến mãi:
                    </label>
                    <asp:TextBox ID="gia_km" CssClass="text_field" runat="server"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Ngày giờ bắt đầu:
                    </label>
                    <asp:TextBox ID="ngay_bat_dau" CssClass="text_field" runat="server"></asp:TextBox>&nbsp;&nbsp;Định dạng: yyyy-mm-dd hh:mm:ss. Ví dụ: 2012-06-13 12:12:12
                </div>
                <div class="group">
                    <label class="label">
                        Ngày giờ kết thúc:
                    </label>
                    <asp:TextBox ID="ngay_ket_thuc" CssClass="text_field" runat="server"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Số lượng tối đa:
                    </label>
                    <asp:TextBox ID="so_luong_toi_da" CssClass="text_field" runat="server"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Số lượng tối thiểu:
                    </label>
                    <asp:TextBox ID="so_luong_toi_thieu" CssClass="text_field" runat="server"></asp:TextBox>
                </div>
                <div class="group">
                    <label class="label">
                        Hình ảnh:
                    </label>
                    <asp:Image ID="anh_1" runat="server" Width="300" /><br />
                    <asp:FileUpload ID="hinh_anh_1" runat="server" CssClass="text_field" />&nbsp;&nbsp;Ảnh chính
                </div>
                <div class="group">
                    <label class="label">
                    </label>
                    <asp:Image ID="anh_2" runat="server" Width="300" /><br />
                   <asp:FileUpload ID="hinh_anh_2" runat="server" CssClass="text_field" />
                </div>
                <div class="group">
                    <label class="label">
                    </label>
                    <asp:Image ID="anh_3" runat="server" Width="300" /><br />
                    <asp:FileUpload ID="hinh_anh_3" runat="server" CssClass="text_field" />
                </div>
                <div class="group">
                    <label class="label">
                    </label>
                    <asp:Image ID="anh_4" runat="server" Width="300" /><br />
                    <asp:FileUpload ID="hinh_anh_4" runat="server" CssClass="text_field" />
                </div>
                <div class="group">
                    <label class="label">
                    </label>
                    <asp:Image ID="anh_5" runat="server" Width="300" /><br />
                    <asp:FileUpload ID="hinh_anh_5" runat="server" CssClass="text_field" />
                </div>
                <div class="group navform wat-cf">
                    <asp:Button ID="cap_nhat_km" runat="server" Text="  Lưu  " 
                        onclick="cap_nhat_km_Click" />
                    <!--span class="text_button_padding">or</span-->
                    <a class="text_button_padding link_button" href="./khuyen_mai.aspx">Hủy</a>
                </div>
                </form>
            </div>
        </div>
    </div>
</asp:Content>

